from pymysql import connect

con = connect(host="localhost",port=3306,user="root",password="123456",db="kcb")

cursor1 = con.cursor()
sql = "select * from information"
cursor1.execute(sql)

res = cursor1.fetchall()

def panduan_login(weekday,time):
	for item in res:
		if item[1] == weekday and item[2] == time:
			return "true"
